import os,sys


def pretty( size ):
	sizes = ['B','KiB','MiB','GiB','TiB','Huge']
	i = 0
	while size > 1023:
		size /= 1024
		i += 1
	return "%d%s"%(size,sizes[i])
		
if sys.argv[-1]:
	print pretty(os.stat(sys.argv[-1])[6])
